package com.xiashitech.agent.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCode {
    RESULT_1001("1001","处理成功"),
    RESULT_4001("4001","处理失败"),
    RESULT_4002("4002","签名验证失败"),
    RESULT_4003("4003","sql解析异常"),
    RESULT_4004("4004","未找到sql解析结果"),
    RESULT_4005("4005","未找到数据库schema"),
    RESULT_4006("4006","未查询到与appcode对应的secret"),
    RESULT_4007("4007","通过调用openmetadata进行表信息补全时出现错误"),
    RESULT_4008("4008","调用iam拿到权限信息出现错误"),
    RESULT_4009("4009","通过调用openmetadata后未找到相关数据库信息"),
    RESULT_4010("4010","使用第三方系统用户id获取iam系统用户id出现错误");
    private String code;
    private String message;
}
